# import pytest
# import requests
#
# from core.tools import load_yaml_ids, translate, read_and_replace_yaml
#
# # 定义替换的变量
# replacements = {
#     'ids': '缺少uuid的用例'
# }
#
# # 传入YAML文件路径和替换的变量
# updated_data = read_and_replace_yaml(r'E:\pythonProject\PRAFramework68_pro\data\member_delete.yaml', replacements)
#
# # 打印更新后的数据
# print(updated_data)
#
from core.tools import load_yaml, read_and_replace_yaml

# 定义替换的变量
# replacements = {
#     # 'test1_id': '缺少uuid的用例',  # test1 的 id
#     # 'test2_id': '另一个用例'  # test2 的 id
#     'test1_id': '缺少uuid的用例',
#     'id2': '另一个用例',
#     'check.msg': '换了'
# }

# 定义替换的变量，可以替换任意键
replacements = {
    'test1_id': '缺少uuid的用例',  # 替换 id 键
    'test2_id': '第二个id'
}

print(read_and_replace_yaml(r"E:\pythonProject\PRAFramework68_pro\data\member_delete.yaml", replacements))
